<div class="business-toolbar clearfix">
	<div class="title pull-left">交易渠道</div>
	<div class="pull-right business-type-wrap">

		<div class="input-append pull-right">
			{{input class="input span3" value=keyWord placeholder="关键字"}}
			<button class="btn btn-primary" {{action "search"}}>查询</button>
		</div>

		<div class="pull-right " style="margin-right:10px">
		{{view view.TimeRanges
			id="businessTimeRangesTopo"
			defaultDate=pinTimePoint
			onChange="timeRangesChange"
			clickTimePoint=timePointLisenterEvent}}
		</div>

		<div class="pull-right " style="margin-right:10px;width:20%">
		<!-- 	{{view "select" class="business-type-width"  content=transcationChannel optionLabelPath="content.name" optionValuePath="content.name" prompt="交易渠道" value=channelValue }} -->
		</div>
		
		
	</div>
</div>

<div class="apm-gridcontainer">
	{{view view.Grid
		columns=perfColumns
		content=errorcodes
		pageIndex=pageIndex
		allowPaging=true
		pageSize=pageSize
		totalRows=totalRows
		allowSorting=true
		cellClicked="errorGridClicked"
		pageIndexChanged="pageIndexChanged"
		class="business-grid-white-space"}}
</div>

{{#view view.Dialog
	id="businessNodeDetailErrorcodeStackDialog"
	class="node-error-stack"
	title="错误明细"
	autoOpen=false
	modal=true
	width=800
	height=600
	buttons=dialogButtons}}

	<div class="control-group error-uri">
		{{curError.uri}}
	</div>
	<div class="control-group error-info">
		<table class="apm-table">
			<tr>
				<td>
					<div class="title">第一次发生时间</div>
					<div>{{curError._formatted_firstTime}}</div>
				</td>
				<td>
					<div class="title">最后一次出现时间</div>
					<div>{{curError._formatted_lastTime}}</div>
				</td>
				<td>
					<div class="title">发生次数</div>
					<div>{{curError.repeatCount}}</div>
				</td>
			</tr>
		</table>
	</div>
	<div class="control-group stack-index">
		<table class="apm-table">
			<tr>
				<td>
					<i class="icon-step-backward" {{action "gotoErrorStack" "first"}}></i>
					<i class="icon-chevron-left" {{action "gotoErrorStack" "-1"}}></i>
				</td>
				<td>
					<div class="title">最近{{curErrorStack._index}}次</div>
					<div>发生时间：{{curErrorStack._formattedTime}}</div>
				</td>
				<td>
					<i class="icon-chevron-right" {{action "gotoErrorStack" "+1"}}></i>
					<i class="icon-step-forward" {{action "gotoErrorStack" "last"}}></i>
				</td>
			</tr>
		</table>
	</div>
	<div class="control-group stack-errormsg">
		<h5>错误信息</h5>
		{{curErrorStack.errorMessage}}
	</div>
	<div class="control-group stack-header">
		<h5>原始信息</h5>
		<table class="apm-table">
			{{#each curErrorStack.fields as |field|}}
			<tr>
				<td class="name">{{field.name}}</td>
				<td class="value">{{field.value}}</td>
			</tr>
			{{/each}}
		</table>
	</div>
{{/view}}